using UnityEngine;
using System.Collections;

public class Enemy : MonoBehaviour
{
	private int hp;
	private int movspeed;
	
	void Start ()
	{
		
	}
	
	public void Setup (string _tag, int hp, int movspeed)
	{
		transform.tag = _tag;
		this.hp = hp;
		this.movspeed = movspeed;
	}
	
	public void Hit (int damage)
	{
		hp -= damage;
		
		if (hp <= 0)
		{
			Destroy (gameObject);	
		}
	}
	
	void Update ()
	{
	
	}
}

